package net.sky.oa.service.shortmsg.impl;

import java.util.List;

import javax.annotation.Resource;

import net.sky.oa.dao.shortmsg.SmsRecieveDao;
import net.sky.oa.model.SmsRecieve;
import net.sky.oa.service.asms.AsmsService;
import net.sky.oa.service.shortmsg.SmsEmployeeService;
import net.sky.oa.service.shortmsg.SmsRecieveService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.htsoft.core.service.impl.BaseServiceImpl;

@Service
@Transactional
public class SmsRecieveServiceImpl extends BaseServiceImpl<SmsRecieve>
		implements SmsRecieveService {

	private SmsRecieveDao smsRecieveDao;
	
	@Autowired
	private AsmsService asmsService;
	
	@Autowired
	private SmsEmployeeService smsEmployeeService;
	
	public SmsRecieveDao getSmsRecieveDao() {
		return smsRecieveDao;
	}

	@Resource
	public void setSmsRecieveDao(SmsRecieveDao smsRecieveDao) {
		super.setDao(smsRecieveDao);
		this.smsRecieveDao = smsRecieveDao;
	}

	

	public void save(List<SmsRecieve> list) throws Exception {
		for(SmsRecieve smsRecieve:list) {
			smsRecieveDao.save(smsRecieve);
		}
		
	}
	
	

}
